<?php
  class College{
     public $name='';
     public $address='';
     public $students=[];
 
 //招生
     public function enroll($studentname){
      echo "招生";
      $this->students[]=$studentname;
     }
     public function teache(){
     	echo "教学";
     }
     public function graduate(){
         foreach ($this->students as $stu) {
            echo $stu.'毕业了';
         }
     }
  }